package org.example.bighomework.Teacher;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

//持久层，使用JPA
@Repository
public interface TeacherRepository  extends JpaRepository<Teacher, String> {
    List<Teacher> findAllByName(String name);
}